package com.itheima.service.Impl;

import com.itheima.mapper.SetMealMapper;
import com.itheima.pojo.Setmeal;
import com.itheima.service.SetMealService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class SetMealServiceImpl implements SetMealService {
    private final SetMealMapper setMealMapper;

    @Override
    public List<Setmeal> getSetmeal() {
        return setMealMapper.getSetmeal();
    }

    @Override
    public Setmeal findByIdSetMeal(Integer id) {
        return setMealMapper.findById(id);
    }
}
